package cn.bdqn.service.contract;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cn.bdqn.dao.contract.ContractMapper;
import cn.bdqn.pojo.Contract;
@Service
public class ContractServiceImpl implements ContractService{
				@Resource
				private ContractMapper contractMapper;
	
	public int addContractList(Contract contract) {
		return contractMapper.addContractList(contract);
	}

	@Override
	public Contract selectContractList(Integer id) {
		return contractMapper.selectContractList(id);
	}

	@Override
	public Integer updateContractList(Contract contract) {
		return contractMapper.updateContractList(contract);
	}

	@Override
	public int getCount() {
		return contractMapper.getCount();
	}

	@Override
	public List<Contract> getContractList(String contract_number,Integer pageNo, Integer pageSize) {
		return contractMapper.getContractList(contract_number,pageNo, pageSize);
	}

	@Override
	public int deleteById(int id) {
		return contractMapper.deleteById(id);
	}

	@Override
	public Contract selectById(int id) {
		return contractMapper.selectById(id);
	}


}
